using System;

namespace DesignPattern.Creational.Singleton
{
    public class SingletonByLazy
    {
        private static SingletonByLazy _instance = new Lazy<SingletonByLazy>().Value;

        private SingletonByLazy() {}

        public static SingletonByLazy GetInstance()
        {
            return _instance;
        }
    }
}